//
//  RegniserView.m
//  TFView
//
//  Created by lanou3g on 15/6/13.
//  Copyright (c) 2015年 多飞科技. All rights reserved.
//

#import "RegniserView.h"
#import "TFView.h"
@implementation RegniserView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        TFView*ltView = [[TFView alloc]initWithFrame:CGRectMake(20, 100, 300, 50)];
        ltView.ltLabel.text = @"手机号码：";
     
        
        _regniserTFView = [ltView retain];
        [self addSubview:ltView];
        [ltView release];
        
        UIButton*rButton = [UIButton buttonWithType:UIButtonTypeSystem];
         rButton.frame = CGRectMake(100, 400, 50, 30);
      
        [rButton setTitle:@"取消" forState:UIControlStateNormal];
        
        _button = [rButton retain];
        [self addSubview:_button];
       
        rButton.backgroundColor = [UIColor redColor];
        [_button addTarget:self action:@selector(regniserButton:) forControlEvents:UIControlEventTouchUpInside];
    
        
        
        
    }return self;
}


-(void)regniserButton:(UIButton*)button{
    
    [self removeFromSuperview];
    
}






@end
